#ifndef CLIENT_H
#define CLIENT_H
#include <string>
#include <winsock2.h>
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <conio.h>


class Client
{
    public:
        Client(std::string addr);
        virtual ~Client();
        void connexion();
        int chat();

    protected:

    private:
        const char * m_adresse;
        fd_set rfds;
        struct timeval tv;
        int retval;
        WSADATA WSAData;
        SOCKET sockTexte;
        SOCKET sockSon;
        SOCKADDR_IN sin;
        SOCKADDR_IN csin;
};

#endif // CLIENT_H
